package com.java_foundation.huawei.Test_5;

import java.util.Scanner;

/**
 * @program: java_foundation
 * @description: 写出一个程序，接受一个正浮点数值，输出该数值的近似整数值。如果小数点后数值大于等于5,向上取整；小于5，则向下取整。
 * @author: xiongbangwen <Email>xiongbangwen@163.com</Email>
 * @create: 2020-08-02 21:49
 **/
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Double value;
        int num = 0;
        while (scanner.hasNext()) {
            value = scanner.nextDouble();
            num = (int)(value+0.5);
            System.out.println(num);
        }
    }
}
